from rest_framework.serializers import ModelSerializer
from .models import *


class NewsSer(ModelSerializer):
    class Meta:
        model = News
        fields = '__all__'


class XWser(ModelSerializer):
    class Meta:
        model = Advertisement
        fields = '__all__'
